var x = {};

x.convertBankCard = function(data){
    var position = data.length - 4;
    return "**** **** **** " + data.substring(position);
};

x.jsonDecodeForList = function(data){
    if(data == ""){
        return [];
    }
    return JSON.parse(data);
};

module.exports = x;